package com.logansoft.zhxypkoa.domain.sys;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.springframework.context.annotation.Scope;

import com.logansoft.zhxypkoa.domain.Actions;
import com.logansoft.zhxypkoa.domain.Base;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 权限模型
 * 
 * @author zhuyj
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@Table(name = "s_sys_resource")
@Scope(value = "prototype")
public class Resource extends Base {

	private static final long serialVersionUID = 1L;
	
	@OneToMany(mappedBy = "resource", fetch = FetchType.LAZY)
	private List<Premission> premissions;
}
